'''
Created on 2017年4月5日

@author: Administrator
'''
import numpy as np
import pylab as pl
x = [1, 2, 3, 4, 5]# Make an array of x values
y = [1, 4, 9, 16, 25]# Make an array of y values for each x value
pl.plot(x, y)# use pylab to plot x and y
pl.show()# show the plot on the screen
 
# mu=100
#  
# sigma=20
#  
# x=mu+sigma*np.random.randn(20000)# 样本数量
#  
# plt.hist(x,bins=100,color='green',normed=True)# bins显示有几个直方,normed是否对数据进行标准化
#  
# plt.show()